package br.com.locautowebbd.endereco;

import br.com.locautowebbd.util.RepositorioException;


public interface RepositorioEnderecos {

	public abstract boolean existe(int cep) throws RepositorioException;

	public abstract void inserir(Endereco novoEndereco)
			throws EnderecoExistenteException, RepositorioException;

	public abstract void atualizar(Endereco endereco)
			throws EnderecoInexistenteException, RepositorioException;

	public abstract Endereco procurar(int cep)
			throws EnderecoInexistenteException, RepositorioException;

	public abstract void remover(int codigo) throws EnderecoInexistenteException,
			RepositorioException;
}